﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ExcelDnaDemo
{
    class Common
    {
        public static string GetCurrentProcessFileName()
        {
            string path = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName;
            string name = System.IO.Path.GetFileNameWithoutExtension(path);
            return name;
        }
    }
}
